function Player(){
    this.name = '';
    this.hp = 0;
    this.wuli = 0;
    this.swordLevel = 0;
    this.ownCards = {};
    this.exp = 0;
    this.id = -1;
    this.money = 0;
    this.faceId = '';

    this.win = 0;
    this.lost = 0;
    this.drop = 0;

    //client_player_data
    this.enemyId = 0;
    this.battleId = 0;
}

Player.prototype.copyFromPlayerData = function(playerData){
    this.id = playerData.id;
    this.name = playerData.name;
    this.hp = playerData.hp;
    this.wuli = playerData.wuli;
    this.swordLevel = playerData.swordLevel;
    this.ownCards = playerData.ownCards;
    this.exp = playerData.exp;
    this.money = playerData.money;
    this.faceId = playerData.faceId;

    this.win = playerData.win;
    this.lost = playerData.lost;
    this.drop = playerData.drop;
};

